export const pcRoutes = [{
    path: '/pc',
    name: 'pc',
    component: () => import('@/layout/pc/index.vue'),
    redirect: '/pc/home',
    meta: {
        title: '',
        isMenu: false
    },
    children: [
        {
            path: 'home',
            name: 'home',
            component: () => import('@/view/pc/home/index.vue'),
            meta: {
                title: '首页',
                isMenu: true
            }
        }, {
            path: 'archives',
            name: 'archives',
            meta: {
                title: '文章归档',
                isMenu: true
            },
            redirect: '/pc/archives/archive',
            children: [
                {
                    path: 'archive',
                    name: 'archive',
                    component: () => import('@/view/pc/archives/archive/index.vue'),
                    meta: {
                        title: '归档',
                        isMenu: true
                    }
                }, {
                    path: 'category',
                    name: 'category',
                    component: () => import('@/view/pc/archives/category/index.vue'),
                    meta: {
                        title: '分类',
                        isMenu: true
                    }
                }, {
                    path: 'tag',
                    name: 'tag',
                    component: () => import('@/view/pc/archives/tag/index.vue'),
                    meta: {
                        title: '标签',
                        isMenu: true
                    }
                },
            ]
        }, {
            path: 'ai',
            name: 'ai',
            component: () => import('@/view/pc/ai/index.vue'),
            meta: {
                title: 'AI',
                isMenu: true
            }
        }, {
            path: 'board',
            name: 'board',
            component: () => import('@/view/pc/board/index.vue'),
            meta: {
                title: '画板',
                isMenu: true
            }
        }, {
            path: 'manage',
            name: 'manage',
            component: () => import('@/view/pc/manage/index.vue'),
            meta: {
                title: '管理',
                role: '管理员',
                isMenu: true
            },
            redirect: '/pc/manage/recent',
            children: [
                {
                    path: 'recent',
                    name: 'recent',
                    component: () => import('@/view/pc/manage/recent/index.vue'),
                    meta: {
                        title: '最近文章',
                        role: '管理员',
                        isMenu: true,
                    },
                }, {
                    path: 'post',
                    name: 'postList',
                    component: () => import('@/view/pc/manage/post/index.vue'),
                    meta: {
                        title: '文章列表',
                        role: '管理员',
                        isMenu: true
                    },
                }, {
                    path: 'category',
                    name: 'categoryList',
                    component: () => import('@/view/pc/manage/category/index.vue'),
                    meta: {
                        title: '分类列表',
                        role: '管理员',
                        isMenu: true
                    },
                }, {
                    path: 'tag',
                    name: 'tagList',
                    component: () => import('@/view/pc/manage/tag/index.vue'),
                    meta: {
                        title: '标签列表',
                        role: '管理员',
                        isMenu: true
                    },
                }, {
                    path: 'user',
                    name: 'userList',
                    component: () => import('@/view/pc/manage/user/index.vue'),
                    meta: {
                        title: '用户列表',
                        role: '管理员',
                        isMenu: true
                    },
                }
            ]
        }, {
            path: 'post',
            name: 'post',
            meta: {
                title: '',
                isMenu: false
            },
            children: [
                {
                    path: 'p/:id',
                    name: 'p',
                    component: () => import('@/view/pc/post/p/index.vue'),
                    meta: {
                        title: '文章',
                        isMenu: false
                    }
                }, {
                    path: 'search',
                    name: 'search',
                    component: () => import('@/view/pc/post/search/index.vue'),
                    meta: {
                        title: '搜索',
                        isMenu: false
                    }
                }
            ]
        }],
}, {
    path: '/pc/manage/edit',
    name: 'edit',
    component: () => import('@/view/pc/manage/edit/index.vue'),
    meta: {
        title: '',
        isMenu: false,
        leaveConfirm:true
    }
}]

